projects
/
project
/
bcm63xx
/
u-boot.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
c13bb16
)
bootp can use mdelay
author
Pavel Machek
<
[email protected]
>
Fri, 11 Jul 2014 09:39:37 +0000
(11:39 +0200)
committer
Tom Rini
<
[email protected]
>
Tue, 22 Jul 2014 11:44:25 +0000
(07:44 -0400)
Cleanup bootp code by using mdelay.
Signed-off-by: Pavel Machek <
[email protected]
>
Acked-by: Marek Vasut <
[email protected]
>
net/bootp.c
patch
|
blob
|
history
diff --git
a/net/bootp.c
b/net/bootp.c
index 189a00383543982c448d9d6713725fe32c1ba86b..fdb97cb56252521237baf7b2f02c94f42724cd8d 100644
(file)
--- a/
net/bootp.c
+++ b/
net/bootp.c
@@
-605,7
+605,7
@@
BootpRequest(void)
int extlen, pktlen, iplen;
int eth_hdr_size;
#ifdef CONFIG_BOOTP_RANDOM_DELAY
- ulong
i,
rand_ms;
+ ulong rand_ms;
#endif
bootstage_mark_name(BOOTSTAGE_ID_BOOTP_START, "bootp_start");
@@
-623,8
+623,7
@@
BootpRequest(void)
rand_ms = rand() >> 19;
printf("Random delay: %ld ms...\n", rand_ms);
- for (i = 0; i < rand_ms; i++)
- udelay(1000); /*Wait 1ms*/
+ mdelay(rand_ms);
#endif /* CONFIG_BOOTP_RANDOM_DELAY */